﻿using AdminFrame.Enum;
using System.Threading.Tasks;

namespace AdminFrame.Domain.Parameters
{
    public interface IParameterManager
    {
        Task<Parameter> CreateAsync(
            string name,
            string code,
            ParameterTypeEnum type,
            string description = null,
            IsActiveEnum isActive = IsActiveEnum.Yes);

        Task ChangeNameAsync(Parameter parameter, string newName);
        Task ChangeCodeAsync(Parameter parameter, string newCode);
        Task ChangeActiveStatusAsync(Parameter parameter, IsActiveEnum isActive);
    }
}